<?php
/**
 * Attributes factory storing headers sent by client to server.
 */
class RequestHeaders extends Component {
	public function __construct() {
		foreach($_SERVER as $strKey=>$strValue) {
			if(strpos($strKey, "HTTP_")===0) {
				$this->setAttribute($strKey, $strValue);
			}
		}
	}
}